package com.xbongbong.pro.productcategory.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/3/22 16:03
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class ProductCategoryUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = -4754991078508024778L;
    /**
     * 数据id
     */
    @NotNull(message = "{dto.msg.productCategoryUpdate.productCategoryId.NotNull}")
    private Long productCategoryId;

    /**
     * 名称
     */
    @NotNull(message = "{dto.msg.productCategoryUpdate.name.NotNull}")
    @Length(max = 50, message = "{dto.msg.productCategoryUpdate.name.Length}")
    private String name;


    /**
     * 删除标识
     * @see com.xbongbong.paas.enums.DelEnum
     */
    private Integer del;
}
